package models;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import play.db.jpa.GenericModel;

@Entity
@Table(name = "sellunknown_orders")
public class SellUnknownOrder  extends GenericModel implements Serializable{
	 
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer id;                  //int(10) not null auto_increment
	public String msgtype;              //'消息类型，可选值：Station,SchedulePrice,Ticket,Pricedel,Vehicle,Departpassenger,Departpassengerdel,ErrorTicket,Lock,Unlock,SellTicket,SellUnknown,RefundTicket,RefundUnknown,SpecialReturnticket,SpecialReturnUnknown',
	public String msgcontent;           //'消息内容',
	@Temporal(TemporalType.TIMESTAMP)
	public Date msgtime;              //消息发送时间
	public String orgcode;              //'机构编码，所有消息都有',
	public Long hashid;               //'消息的hashid,同步消息都有此字段',
	public String orderno;             //订单号'部分业务消息有此字段',
	public String netticketid;          //电子票号'部分业务消息有此字段',
	public Long msghashid;			//消息hashid,(业务取全部发送的消息，同步取msg.content)
	public boolean dealed;			//是否消费成功
	@Temporal(TemporalType.TIMESTAMP)
	public Date dealtime;			//消息消费时间
	public Integer dealcount;	//处理次数
}
